from random import shuffle
from card import Card, Camp, CardName  # 把刚才的结构体保存为 card.py

# 1. 按配置生成牌堆
pool: list[Card] = []
pool.extend([Card(Camp.WEREWOLF, CardName.WEREWOLF)] * 3)   # 3 狼人
pool.append(Card(Camp.GOD, CardName.SEER))                 # 1 预言家
pool.append(Card(Camp.GOD, CardName.WITCH))                # 1 女巫
pool.append(Card(Camp.GOD, CardName.HUNTER))               # 1 猎人
pool.extend([Card(Camp.GOOD, CardName.VILLAGER)] * 3)      # 3 平民

# 2. 随机洗牌
shuffle(pool)
# 打印出来 序号
# 3. 查看结果
for i, card in enumerate(pool):
    print(i, card)